import request from '../../utils/request'

export function getGoodList() {
  return request.get('/home')
}

export function buyGood(data) {
  return request.post('/home',data)
}

export function delGood(params) {
  return request.delete('/home',{params:params})
}

export function getCate() {
  return request.get('/cate')
}

export function getCateGood(params) {
  return request.get('/home/cate',{params:params})
}

export function postCollection(data) {
  return request.post('/collection',data)
}

export function delCollection(params) {
  return request.delete('/home/collection',{params:params})
}